﻿using System;
using Freshbooks.XmlSerializers;

namespace Freshbooks.Model
{
    [FreshbooksSerialization(Name = "expense")]
    public class Expense
    {
        [FreshbooksSerialization(Name = "expense_id")]
        public int ExpenseId { get; set; }

        [FreshbooksSerialization(Name = "staff_id")]
        public int StaffId { get; set; }

        [FreshbooksSerialization(Name = "category_id")]
        public int CategoryId { get; set; }

        [FreshbooksSerialization(Name = "project_id")]
        public int ProjectId { get; set; }

        [FreshbooksSerialization(Name = "client_id")]
        public int ClientId { get; set; }

        [FreshbooksSerialization(Name = "amount")]
        public float Amount { get; set; }

        [FreshbooksSerialization(Name = "date")]
        public DateTime Date { get; set; }

        [FreshbooksSerialization(Name = "notes")]
        public string Notes { get; set; }

        [FreshbooksSerialization(Name = "vendor")]
        public string Vendor { get; set; }

        [FreshbooksSerialization(Name = "status")]
        public string Status { get; set; }

        [FreshbooksSerialization(Name = "folder")]
        public string Folder { get; set; }

        [FreshbooksSerialization(Name = "tax1_name")]
        public string Tax1Name { get; set; }

        [FreshbooksSerialization(Name = "tax1_percent")]
        public int Tax1Percent { get; set; }

        [FreshbooksSerialization(Name = "tax1_amount")]
        public float Tax1Amount { get; set; }

        [FreshbooksSerialization(Name = "tax2_name")]
        public string Tax2Name { get; set; }

        [FreshbooksSerialization(Name = "tax2_percent")]
        public int Tax2Precent { get; set; }

        [FreshbooksSerialization(Name = "tax2_amount")]
        public float Tax2Amount { get; set; }
    }
}
